<!--{subtemplate jameson_read:touch/header}-->
<div class="header fixedtop none" id="readtop">
    <div class="weui-flex">
      <div onclick="history.go(-1)" class="weui-flex__item header_left">
          <i class="fa fa-chevron-left"></i>
      </div>
      <div class="weui-flex__item header_title"><a href="{eval echo mbreurl('book',$bookinfo['book_id']);}">
      <!--{$bookinfo['book_name']}-->
      </a></div>
      <div class="weui-flex__item header_right flex-2">
        <a href="javascript:;" class="open-popup" data-target="#settingdiv">
        <i class="fa fa-cog"></i>
      </a>
      <a href="javascript:;" class="open-popup" data-target="#bottomtab">
        <i class="fa fa-fw fa-navicon"></i>
      </a>
      </div>
    </div>
</div>
<div  id="columcontent" style="font-size: 16px" data-font="16">
    <!--{if $shoujiyuedugg[0]['adv']}-->
      <div class="zdyadv">
          <!--{eval echo stripcslashes($shoujiyuedugg[0]['adv']);}-->
      </div>
    <!--{/if}-->
<!--{if !$shifoukedu}-->
        <div class="weui-panel__hd">
            <h2 class="weui-media-box__title">
            <!--{$subject}-->
            </h2>
        </div>
        <div class="weui-panel__bd" id="">
        <!--{$message}-->
        </div>
<!-- 提示购买 -->
    <div  class="weui-flex">
        <div class="weui-flex__item weui-media-box text-center">
            <a class="weui-btn weui-btn_warn" href="javascript:;" onclick="jameson.buytids(this,{$columinfo['price']})" data-href="./plugin.php?id=jameson_read&contrl=touch&act=buytidsajax&tid=$columinfo['tid']">
              <!--{lang jameson_read:goumaibenzhangjie}-->
              <em>[
              <!--{$columinfo['price']}-->
              ] 
              <!--{$_G['jameson_read']['trametitle']}-->
              </em>
            </a>
            <label for="autobuy" class="">
              <em>{lang jameson_read:zidonggoumai}</em>
              <input type="checkbox" name="autobuy" id="autobuy" checked>
            </label>
        </div>
    </div>
<!--{else}-->
  <!-- 可直接阅读 -->
        <div class="weui-panel__hd">
            <h2 class="weui-media-box__title">
            <!--{$subject}-->
            </h2>
        </div>
        <div class="weui-panel__bd">
        <!--{$message}-->
        </div>
<!--{/if}-->
  <!--{if $shoujiyuedugg[1]['adv']}-->
  <div class="zdyadv">
      <!--{eval echo stripcslashes($shoujiyuedugg[1]['adv']);}-->
  </div>
  <!--{/if}-->
</div>

<div class="weui-flex text-center mb15" style="margin-bottom: 45px">
    <!--{if $predata}-->
  <div class="weui-flex__item">
    <a  href="{eval echo mbreurl('thread',$predata['tid'],$predata['pid'],$_G['uid']);}" class="weui-btn weui-btn_default weui-btn_mini">
    <!--{lang jameson_read:shangyizhang}-->
    </a>
  </div>
  <div class="weui-flex__item">
    <a  href="javascript:;" class="weui-btn weui-btn_default weui-btn_mini open-popup" data-target="#muludiv">
    <!--{lang jameson_read:mulu}-->
    </a>
  </div>
    <!--{/if}-->
    <!--{if $nextdata}-->
  <div class="weui-flex__item">
    <a  href="{eval echo mbreurl('thread',$nextdata['tid'],$nextdata['pid'],$_G['uid']);}"  class="weui-btn weui-btn_default weui-btn_mini">
    <!--{lang jameson_read:xiayizhang}-->
    </a>
  </div>
    <!--{/if}-->
</div>
<div class="weui-flex  fixedbottom none" id="readbottom">
    <div class="weui-flex__item">
      <a href="javascript:;"  class="weui-btn weui-btn_default   open-popup" data-target="#muludiv">
        <i class="fa fa-fw fa-book"></i>
      </a>
    </div>
    {if $_G['jameson_read']['showshuping']}
    <div class="weui-flex__item">
      <a href="{eval echo mbreurl('shuping',$bookinfo['book_id']);}"  class="weui-btn weui-btn_default  ">
        <i class="fa fa-fw fa-comments-o"></i>
      </a>
    </div>
    {/if}
    <!--{if $shifoukedu && $_G['jameson_read']['apikey'] && $_G['jameson_read']['secretkey']}-->
    <div class="weui-flex__item">
      <a href="javascript:;" onclick="jameson.play(this)"  class="weui-btn weui-btn_default  ">
        <i class="fa fa-fw fa-volume-up"></i>
      </a>
    </div>        
    <!--{/if}-->
    <!--{if $_G['jameson_read']['enableshupiao']}-->
    <div class="weui-flex__item">
      <a href="javascript:;" {if !$_G['uid']} onclick="jameson.login()" {/if}   class="weui-btn weui-btn_default {if $_G['uid']} open-popup {/if} " {if $_G['uid']} data-target="#readshupiao"{/if}>
        <i class="fa fa-fw fa-diamond"></i>
      </a>
    </div>
    <!--{/if}-->
    <div class="weui-flex__item">
        <!--{if $hasmark}-->
            <a href="javascript:;" onclick="jameson.deletebookmark(this)" data-id="{$hasmark}"  class="weui-btn weui-btn_default ">
              <i class="fa fa-fw fa-bookmark"></i>
            </a>
        <!--{else}-->
            <a href="javascript:;" onclick="jameson.addbookmark({$bookinfo['book_id']},{$columinfo['tid']},this)"  class="weui-btn weui-btn_default ">
             <i class="fa fa-fw fa-bookmark-o"></i>
            </a>
        <!--{/if}-->
    </div>
    <div class="weui-flex__item">
      <a href="javascript:;"  class="weui-btn weui-btn_default   open-popup" data-target="#sharediv">
        <i class="fa fa-fw fa-share-alt"></i>
      </a>
    </div>
</div>
<!--{if $_G['jameson_read']['enableshupiao']}-->
<div id="readshupiao" class="weui-popup__container popup-bottom">
  <div class="weui-popup__overlay"></div>
  <div class="weui-popup__modal">
    <div class="weui-grids weui-panel ">
    {if $_G['jameson_read']['dstrameid']}
      <a href="javascript:;" onclick="jameson.dashang()" class="weui-grid four_one">
        <div class="weui-grid__label">
          <p class="text-danger">
          <!--{lang jameson_read:dashangbutton}-->
          </p>
          <p>
          <!--{lang jameson_read:nimuqianyou}-->
          <br>
          <!--{$_G["jameson_read"]["dstramenum"]}-->
          <!--{$_G["jameson_read"]["dstrametitle"]}-->
          </p>
        </div>
      </a>
    {/if}
      <a href="javascript:;" onclick="jameson.toupiao(101,{$bookinfo['uid']},{$piaoinfo[101]['image']},{$piaoinfo[101]['url']},'{$_G["setting"]["extcredits"][$piaoinfo[101]["image"]]["title"]}')" class="weui-grid {if $_G['jameson_read']['dstrameid']}four_one{/if}">
        <div class="weui-grid__label">
          <p class="text-danger">
          <!--{lang jameson_read:tou}--><!--{$piaoinfo[101]['name']}-->
          </p>
          <p>
            <span data-exid="101"><!--{$bookinfo['yuepiao']}--></span><!--{lang jameson_read:jizhang}-->
          </p>
          <!--{eval echo intval($piaoinfo[101]['url']);}-->
          <!--{$_G['setting']['extcredits'][$piaoinfo[101]['image']]['title']}-->
        </div>
      </a>
      <a class="weui-grid {if $_G['jameson_read']['dstrameid']}four_one{/if}" href="javascript:;" onclick="jameson.toupiao(102,{$bookinfo['uid']},{$piaoinfo[102]['image']},{$piaoinfo[102]['url']},'{$_G["setting"]["extcredits"][$piaoinfo[102]["image"]]["title"]}')">
          <div class="weui-grid__label">
            <p class="text-danger">
            <!--{lang jameson_read:tou}--><!--{$piaoinfo[102]['name']}-->
            </p>
            <p>
              <span data-exid="102"><!--{$bookinfo['tuijianpiao']}--></span>
            <!--{lang jameson_read:jizhang}-->
            </p>
            <!--{eval echo intval($piaoinfo[102]['url']);}-->
            <!--{$_G['setting']['extcredits'][$piaoinfo[102]['image']]['title']}-->
          </div>
      </a>
      <a class="weui-grid {if $_G['jameson_read']['dstrameid']}four_one{/if}" href="javascript:;" onclick="jameson.toupiao(103,{$bookinfo['uid']},{$piaoinfo[103]['image']},{$piaoinfo[103]['url']},'{$_G["setting"]["extcredits"][$piaoinfo[103]["image"]]["title"]}')" >
          <div class="weui-grid__label">
          <p class="text-danger">
          <!--{lang jameson_read:tou}--><!--{$piaoinfo[103]['name']}-->
          </p>
          <p>
            <span data-exid="103"><!--{$bookinfo['cuigengpiao']}--></span><!--{lang jameson_read:jizhang}-->
          </p>
              <!--{eval echo intval($piaoinfo[103]['url']);}-->
              <!--{$_G['setting']['extcredits'][$piaoinfo[103]['image']]['title']}-->
          </div>
      </a>
    </div>
  </div>
</div>
<!--{/if}-->

<div id="sharediv" class="weui-popup__container popup-bottom">
  <div class="weui-popup__overlay"></div>
  <div class="weui-popup__modal">
    <div class="weui-grids weui-panel">
      <a href="javascript:;" onclick="jameson.share('qq')" class="weui-grid four_one">
        <div class="">
          <i class="fa fa-fw fa-qq fa-2x"></i>
        </div>
        <p class="weui-grid__label">
          <!--{lang jameson_read:fenxiangdaoqqhy}-->
        </p>
      </a>
      <a href="javascript:;" onclick="jameson.share('qzone')" class="weui-grid four_one">
        <div class="text-danger">
          <i class="fa fa-fw fa-qq fa-qzone fa-2x"></i>
        </div>
        <p class="weui-grid__label">
          <!--{lang jameson_read:fenxiangdaoqqkj}-->
        </p>
      </a>
      <a href="javascript:;" onclick="jameson.share('weixin')" class="weui-grid four_one">
        <div class="">
          <i class="fa fa-fw fa-weixin fa-2x"></i>
        </div>
        <p class="weui-grid__label">
          <!--{lang jameson_read:fenxiangdaoweixin}-->
        </p>
      </a>
      <a href="javascript:;" onclick="jameson.share('weibo')" class="weui-grid four_one">
        <div class="">
          <i class="fa fa-fw fa-weibo fa-2x"></i>
        </div>
        <p class="weui-grid__label">
          <!--{lang jameson_read:fenxiangdaoweibo}-->
        </p>
      </a>
    </div>
  </div>
</div>

<div id="muludiv" class="weui-popup__container muludiv">
  <div class="weui-popup__overlay"></div>
  <div class="weui-popup__modal">
    <div class="weui-tab">
      <div class="weui-navbar" style="z-index: 5">
        <a class="weui-navbar__item weui-bar__item--on" data-href="#tab1">
          <!--{lang jameson_read:zhengxu}-->
        </a>
        <a class="weui-navbar__item" data-href="#tab2">
          <!--{lang jameson_read:daoxu}-->
        </a>
      </div>
      <div class="weui-tab__bd">
        <div id="tab1" class="weui-tab__bd-item weui-tab__bd-item--active">
            <div class="weui-grids weui-panel">
              {loop $bookinfo['fenjuan'] $j}
                <div class="weui-media-box_title mt5 ml8">
                  <!--{$j['j_title']}-->
                </div>
                {loop $j['colums'] $zj}
                  <a class="weui-cell weui-cell_access" href="{eval echo mbreurl('thread',$zj['tid'],$zj['pid'],$_G['uid']);}"">
                    <div class="weui-cell__bd">
                      <p>
                      <!--{$zj['subject']}-->
                      </p>
                    </div>
                    <div class="weui-cell__ft">
                        <!--{if $zj['price']}-->
                        VIP
                        <!--{/if}-->
                    </div>
                  </a>
                {/loop}
              {/loop}
            </div>
        </div>
        <div id="tab2" class="weui-tab__bd-item">
              <div class="weui-grids weui-panel">
                {loop $revmuluarray $j}
                  <div class="weui-media-box_title mt5 ml8">
                    <!--{$j['j_title']}-->
                  </div>
                  {loop $j['colums'] $zj}
                    <a class="weui-cell weui-cell_access" href="{eval echo mbreurl('thread',$zj['tid'],$zj['pid'],$_G['uid']);}"">
                      <div class="weui-cell__bd">
                        <p>
                        <!--{$zj['subject']}-->
                        </p>
                      </div>
                      <div class="weui-cell__ft">
                          <!--{if $zj['price']}-->
                          VIP
                          <!--{/if}-->
                      </div>
                    </a>
                  {/loop}
                {/loop}
              </div>
        </div>
      </div>
    </div>
  </div>
</div>

<div id="settingdiv" class="weui-popup__container popup-bottom">
  <div class="weui-popup__overlay"></div>
  <div class="weui-popup__modal">
    <div class="weui-grids">
      <a href="javascript:;" onclick="jameson.addfontsize()">
        <i class="fa fa-font">+</i>
      </a>
      <a href="javascript:;" onclick="jameson.subfontsize()">
        <i class="fa fa-font">-</i>
      </a>

      <a href="javascript:;" onclick="jameson.setback('danhuang')">
        <i class="fa fa-circle danhuang"></i>
      </a>
      <a href="javascript:;" onclick="jameson.setback('danlv')">
        <i class="fa fa-circle danlv"></i>
      </a>
      <a href="javascript:;" onclick="jameson.setback('heise')">
        <i class="fa fa-circle heise"></i>
      </a>
      <a href="javascript:;" class="moren" onclick="jameson.setback('moren')">{lang jameson_read:morense}</a>
    </div>
    {if $autobuycookie}
    <div class="text-center">
      <a href="javascript:;" class="button text-center" onclick="jameson.noautobuy(this)">{lang jameson_read:quxiaozidongdingyue}</a>
    </div>
    {/if}
  </div>
</div>
{if $_G['jameson_read']['apikey'] && $_G['jameson_read']['secretkey']}
<audio id="playaudioelement" hidden controls="false" src="./plugin.php?id=jameson_read:yuyin&tid={$columinfo['tid']}&pid={$columinfo['pid']}&formhash={FORMHASH}"></audio>
{/if}
<input type="hidden" id="author_id" value="{$bookinfo['uid']}" />
<input type="hidden" id="book_id" value="{$bookinfo['book_id']}" />
<input type="hidden" id="tid" value="{$_GET['tid']}" />
<input type="hidden" value="[{$bookinfo['book_name']}]{$columinfo['subject']}" id="sharebook_name">
<input type="hidden" value="{eval echo cutstr(strip_tags(preg_replace('/\r?\n+/','',$message)), 140);}" id="sharedesco">
<input type="hidden" value="{if $bookinfo['image']}{$_G['siteurl']}/data/attachment/forum/{$bookinfo['image']}{else}{$_G['siteurl']}/{$_G['jameson_read']['morenfengmian']}{/if}" id="shareimage">
<input type="hidden" value="{$_G['siteurl']}{eval echo mbreurl('book',$bookinfo['book_id']);}" id="shareurl">
<!--{loop $dquid $exid $dq}-->
<!--{if preg_match("/^extcredits/i",$exid)}-->
  <input type="hidden" id="dq_{$exid}" value="{$dq}" />
<!--{/if}-->
<!--{/loop}-->
<!--{subtemplate jameson_read:touch/footer}-->